org 0x7c00
[bits 16]
xor ax, ax ; eax = 0
; 初始化段寄存器, 段地址全部设为0
mov ds, ax
mov ss, ax
mov es, ax
mov fs, ax
mov gs, ax

; 初始化栈指针
mov sp, 0x7c00
mov ax, 0xb800
mov gs, ax


mov ah, 0xdb ;背景品红闪烁，字体浅绿
mov al, '2'
mov [gs:2 * 972], ax

mov al, '2'
mov [gs:2 * 973], ax

mov al, '3'
mov [gs:2 * 974], ax

mov al, '3'
mov [gs:2 * 975], ax

mov al, '6'
mov [gs:2 * 976], ax

mov al, '2'
mov [gs:2 * 977], ax

mov al, '6'
mov [gs:2 * 978], ax

mov al, '8'
mov [gs:2 * 979], ax


;实模式中断输出学号22336268
mov bh, 0
mov bl, 0x35
mov cx, 1

mov ah, 02h
mov dh, 0x09
mov dl, 0x09
int 10h

mov ah, 09h
mov al, '2'

int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '2'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '3'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '3'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '6'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '2'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '6'
int 10h

mov ah, 02h
add dl, 1
int 10h

mov ah, 09h
mov al, '8'
int 10h

;设置光标位置
mov ah, 02h
mov dh, 0x06;行6
mov dl, 0x07;列7
int 10h

mov ah, 03h;获取光标的位置
int 10h

mov ah, 09h;打印光标行
mov al, dh
add al, 0x30
mov bl, 0xdb
mov cx, 1
int 10h

mov ah, 02h;光标的移动
add dl, 1
int 10h

mov ah, 09h;打印光标列
mov al, dl
add al, 0x2f
int 10h

jmp $ ; 死循环

times 510 - ($ - $$) db 0
db 0x55, 0xaa
